#!/bin/bash

N_ROW=4700
N_COL=1250
FAST_MODE=0
FOUT_FNAME=tmp/tmp.bin


DAISY_CONFIG=`cat WKDIR`/daisy.ini

echo "*************************************************"
echo "> N_ROW       = ${N_ROW}"
echo "> N_COL       = ${N_COL}"
echo "> FATS_MODE   = ${FAST_MODE}"
echo "> FOUT_FNAME  = ${FOUT_FNAME}"

exp_t=$1

if [ $# == 2 ]; then
    FOUT_FNAME=tmp/${2}.bin
fi

bin/ccd290_exposure -r ${N_ROW} -c ${N_COL} -f ${FAST_MODE} -t ${exp_t} -o ${FOUT_FNAME}

# write log
DATE=`date -u`
echo "EXPTIME ${exp_t} ${FOUT_FNAME} ${DATE}" >> log.txt
echo "*************************************************"
